/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Assembler;

import java.util.Map;
import java.util.TreeMap;

/**
 *
 * @author Scott
 */
public class Table
{
    public Map<String, SymbolRow> Rows;
    public Table()
    {
        Rows = new TreeMap<String, SymbolRow>();
    }

    public void PrintTable()
    {
        System.out.printf("%-33s", "Symbol");
        System.out.printf("%-5s", "LC");
        System.out.printf("%-12s", "Relocation");
        System.out.printf("%-9s", "Usage");
        System.out.printf("%-12s\n", "EQU String");
        System.out.printf("%-33s", "------");
        System.out.printf("%-5s", "--");
        System.out.printf("%-12s", "----------");
        System.out.printf("%-9s", "-----");
        System.out.printf("%-12s\n", "----------");
        
        for(String key : Rows.keySet())
        {
            Rows.get(key).GetData();
            Rows.get(key).PrintRow(key);
        }
        System.out.println();
    }

}
